.foxui-images {
    .foxui-images-card {
        display: flex;
        flex-wrap: wrap;

        .foxui-images-handle {
            padding: $--padding-base / 2;
        }

        .foxui-images-handle-inner {
            width: $--images-size-default;
            height: $--images-size-default;
            border: $--border-width-base $--border-color-base dotted;
            border-radius: $--border-radius-base;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            cursor: pointer;
            position: relative;

            > .foxui-icon-jiahao-o {
                font-size: $--images-icon-size-default;
                color: $--color-primary-light-3;
            }

            .text {
                text-align: center;
                margin-top: $--padding-small;
                color: $--images-text-color-default;
            }
        }

        .foxui-images-list {
            display: flex;
            flex-wrap: wrap;
            margin: -($--padding-base / 2);

            .foxui-images-item {
                padding: $--padding-base / 2;

                .content {
                    width: $--images-size-default;
                    height: $--images-size-default;
                    border: $--border-base;
                    border-radius: $--border-radius-base;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    position: relative;
                    overflow: hidden;

                    // 修复拖动样式的影响
                    .foxui-drag-handle {
                        position: absolute;
                        width: 100%;
                        height: 100%;
                    }

                    img {
                        max-width: 100%;
                        max-height: 100%;
                        z-index: -1;
                    }

                    .replace,
                    .delete {
                        transition: $--fade-transition;
                        opacity: 0;
                    }

                    .replace {
                        position: absolute;
                        bottom: 0;
                        background-color: rgba($color: #000000, $alpha: 0.5);
                        color: rgba($color: #fff, $alpha: 1);
                        width: 100%;
                        font-size: 14px;
                        text-align: center;
                        cursor: pointer;
                    }

                    .delete {
                        position: absolute;
                        top: -2px;
                        right: -2px;
                        font-size: 24px;
                        color: rgba($color: #707070, $alpha: 1);
                        cursor: pointer;

                        &::after {
                            content: '';
                            display: inline-block;
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            transform: translate(-50%, -50%);
                            width: 18px;
                            height: 18px;
                            background-color: #fff;
                            border-radius: 100%;
                            z-index: -1;
                        }
                    }

                    &:hover {
                        .replace,
                        .delete {
                            opacity: 1;
                        }
                    }
                }
            }
        }
    }

    &.foxui-images-medium {
        .foxui-images-card {
            .foxui-images-handle {
                .foxui-images-handle-inner {
                    width: $--images-size-medium;
                    height: $--images-size-medium;
                }

                .foxui-icon-jiahao-o {
                    font-size: $--images-icon-size-medium;
                }

                .text {
                    display: none;
                }
            }
            .foxui-images-list {
                .foxui-images-item {
                    .content {
                        width: $--images-size-medium;
                        height: $--images-size-medium;
                    }

                    .replace {
                        font-size: 13px;
                    }

                    .delete {
                        font-size: 20px;

                        &::after {
                            width: 14px;
                            height: 14px;
                        }
                    }
                }
            }
        }
    }

    &.foxui-images-small {
        .foxui-images-card {
            .foxui-images-handle {
                .foxui-images-handle-inner {
                    width: $--images-size-small;
                    height: $--images-size-small;
                }

                .foxui-icon-jiahao-o {
                    font-size: $--images-icon-size-small;
                }

                .text {
                    display: none;
                }
            }
            .foxui-images-list {
                .foxui-images-item {
                    .content {
                        width: $--images-size-small;
                        height: $--images-size-small;

                        .replace {
                            display: none;
                            font-size: 12px;
                        }

                        .delete {
                            font-size: 18px;

                            &::after {
                                width: 12px;
                                height: 12px;
                            }
                        }
                    }
                }
            }
        }
    }

    &.foxui-images-fluid {
        .foxui-images-card {
            .foxui-images-list {
                .content {
                    width: 100%;
                    height: auto;
                    min-height: 100px;
                    min-width: 100px;

                    img {
                        height: auto;
                    }
                }
            }
        }
    }
}
